package com.example.hospital.patient.wx.api.controller.form;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
public class SearchStudnetForm {
    @NotBlank(message = "studentid不能为空")
    @Pattern(regexp = "^[0-9]{12}$", message = "studentid内容不正确")
    private String studentid;

    @NotBlank(message = "studentname不能为空")
    @Pattern(regexp = "^[\\u4e00-\\u9f5a]{2,20}$", message = "studentname内容不正确")
    private String studentname;

    @NotBlank(message = "institute不能为空")
    @Pattern(regexp = "^[\\u4e00-\\u9f5a]{2,20}$", message = "institute内容不正确")
    private String institute;
}
